Can you please post your current piston in a new thread so we don’t hijack this thread?
Can’t get this to run correctly
Still struggling folks. Is there a tutorial on what and how these functions are implemented. I could easily copy the pistons and adapt them but I’d rather know why and how they work. Like for example, I don’t even know how to and where to find the settings for they variables posted above. I’m particularly struggling on the ‘only run once per day’ settings.
Thanks all.
- The Wiki explains some good core essentials. (the 10 links at the bottom)
- The “Tutorials category” has some good step-by-steps
- The “Example Pistons” category can also be very helpful to study
- You can also search the forums here, and start reading an interesting thread.
There is so much that can be learned in each one of these…
(much more than can be summarized in any Wiki)
All that being said, the very best source of information is right here among your peers. Whenever there is a new discovery or implementation, it surfaces here…
(sometimes taking months before it is added to the Wiki)
For what it’s worth, I usually do not mention variables to someone who just installed webCoRE. It usually takes awhile before the tough questions get asked, and by that point, they already have a grasp on the core concepts. You are doing quite well, considering you are on day 2.
I generally recommend read, read, and read some more…
Then start with simple ideas for pistons, and work your way towards more advanced pistons… Asking questions along the way. It can also be helpful to copy other’s pistons, and then edit it to make it your own.
If you are anything like me, you will likely learn something new with every discussion you read here, and every piston you create…
Even now, I am constantly amazed at what is possible…
I do not understand what you are asking specifically. (variables do not have settings)
Can you rephrase please?
yeah sorry, i didnt phrase that correctly.
What i mean is i not sure what to select from all the drop down boxes when im wanting to set up the piston to run only once daily. Ive looked at the options and i cant see the , integer lastrun option so i can make this piston only run once per day.
Thanks
For a variable to be visible from a drop down menu when coding, it must first be created up top in the define section. (as shown here) That is also the area where you specify if the data is going to be an integer/decimal/string etc. In your case, you want the {lastRanOn} variable to be an integer, since it is only counting whole numbers.
Normally, I define the initial value up top like this:
What this means is the variable will only change when the code below tells it to.