Scheduler bugs - unstable, some of the scheduled events work while others are not


#12

Hi rsiegel,

Now I only have Raspberry pi zero, so assume that the new Arduino scheduler won’t help my problem. After the 2nd reinstall the first 3 scheduled events (daily repeat) out of 10 have started to work (email notification+relay state change), others still not work, neither notification nor relay. Is there any limitation on the number of events configured?


#13

Hi rsiegel,

Another question: as I know the scheduled events are also stored locally in raspberry pi. Can I check it somehow (is it stored in a separate file?)? It would be useful to go further and debug the problem.


#14

Hi again. Yes, confusion on my part, I didn’t read closely enough and thought you meant the Arduino scheduler that we were re-writing.

No, there shouldn’t be any limitation on number of scheduled events you can configure, so this does sound like an unexpected issue. I’m asking internally to see if I can find a place to view the Pi’s locally-stored scheduler events, and will get back to this when I know more.


#15

Alright, I see how to view the events list stored locally on the Pi now. So you can at least see if all of the events have made it there, and if they functioning ones look any different in the DB than the non-functioning ones. Feel free to share with us as well.

The events are stored in an sqlite DB called agent.db located at /etc/myDevices

If you don’t have it already installed on your Pi, you’ll need sqlite to view the DB contents:

sudo apt-get install sqlite3

Once that is installed, then you can open the DB:

sqlite3 /etc/myDevices/agent.db

and finally, from the SQL prompt, list the scheduled events:

SELECT * FROM scheduled_settings;


#16

I have the same scheduler bugs with esp8266-01 and i am interest to test the beta scheduler version.


#17

Hi rsiegel,

Thanks for the information! I checked the content of database, only the first few events are there which are working, others are not. I tried to modify the working ones (changing any of the parameters, delete, etc.) or add new events at the dashboard, but the database didn’t change, the content is the same as before. It should be a synchronisation problem between the database and dashboard. Do you have any idea?


#18

Hi rsiegel,

I have found the solution for the synchronisation problem. As soon as I set the IP address of the raspberry into the DMZ, the database update works, so I think I should allow some ports at the firewall. It’s interesting, because all other functions are working properly without port forwarding. Do you know which ports should I forward? I don’t want to use DMZ.


#19

That is interesting, since I’d expect if you had port 8181 closed for example, that the Raspberry Pi agent software wouldn’t be able to communicate with our server at all.

Here is the full list of ports I have for Cayenne as a general platform. Please note that you may not need all of them – for example, if you don’t run any Arduinos, no need to open port 8442.

443 for HTTPS
8442 for Arduino
8181 for Raspberry Pi
50xx for cloud server websockets
80 for regular HTTP
1883 and 8883 for MQTT


#20

For some time now scheduling has stopped working. Whenever I create a new event and save it, I always get the error message “Could not save the event to machine raspberry”.
Are there any suggestions?

I use a raspberry 3.
Thanks


#21

currently schedulling feature is not support on raspberry pi agent 2.0. have alook at this Raspberry Pi Agent 2.0


#22

by when it willbe supported


#23

We don’t have a date yet, but we are definitely developing this feature to support the new standard as soon as possible.


#24

Any update when this will be working ?


#25

we have some updates planned for the end of this year.


#26

any news about update ?


#27

Before the end of the year, but I believe we will be able to pick up the work next week, so it may be sooner than that.


#28

Hey there, has there been any movement on the scheduler? I’ve set up only one device on my Pi via the GPIO but I can’t get access to the UI to view the schedule and I’ve got no way of disabling the existing tasks.


#29

you can view the scheduler in the event tab (add new—>event)


#30

@shramik_salgaonkar, you sir are a legend! I thought i had seen it somewhere but couldn’t track it down.
What’s the purpose of the ‘Scheduling’ tab under devices and projects? Is it supposed to be a similar view but refined based on the device/project context? I currently get a JS error when i try and access it which is a bit of a pain.


#31

there is a bug currently with project scheduling tab.