Custom User Uploaded Weather Service and Reboots
I created a custom Weather Service and uploaded it to my RainMachine under “User uploaded” Weather Services. The service runs successfully and everything works well. However, if the RainMachine is rebooted (via GUI or unplugging the RainMachine to simulate a power outage), my custom service disappears including its usage in graphs. I can upload my custom service again - and all is ok until the next reboot. Is this expected behavior - if so, it kind of defeats the benefit of developing custom user weather services.
-
1) Rainmachine HD-12, Hardware Revision 3, Firmware 4.0.925
2) Not a single Error - no mention of my parse loading or not loading.
3) Parser name is "jungmann-parser" - which loads just fine after the reboot when I do it manually - as show below (again this is manual after the boot):
2018-07-16 10:17:09,136 - INFO - rmParser:69 - *** Registering parser Jungmann Weather Parser v1.0.07 with interval 21600 2018-07-16 10:17:09,138 - INFO - rmParserManager:380 - * Parser user-jungmann-parser.py successful loaded from file '/rainmachine-app/RMParserFramework/parsers/user-jungmann-parser.py'
-
Jens and Nicholas,
FYI, I am seeing the same behaviour.
Class name is not a conflict, HD-12 machine. There are errors in the log, but related to missing variables, not the loading of the parser.
If I reload the parser file, the data seems to be restored and I can run it again. Therefore something in the DB is being retained, but not the existence of the parser.
The parser is named with a .txt extension as I am uploading from Windows 10. Maybe this is part of the problem.
This is reproducible.
-
OK - so I have rebooted 3 time now and my custom parser is still there. Things that changed: 1) It's been almost 2 days that my custom parser has been running on the RainMachine - so maybe rebooting too quickly after installation is an issue? 2) I did load the custom parser the most recent time from a linux (Ubuntu) machine with the .py extension - so maybe that fixed the issue. I am reluctant to try uploading from Windows again - since it appears to work now. Thank you for investigation and time.
-
I have also tested uploading from Ubuntu via Firefox with the .py extension and can confirm that the parser is available after reboot.
Can I suggest that you add a knowledge base article or change the name of this thread to reflect that custom parsers cannot be uploaded from Windows.
And of course, fix the problem.
-
Sorry to bring up an old thread, but is this still an issue?
I have a Pro 16 running the current 4.0.1131 firmware.
When I upload my py for my WeatherFlow weather collector it loads fine, shows up in the "User Uploaded" list, and collects data just fine. But after a while it disappears - not in the list of weather services at all. I assume this is happening on reboot.
I am uploading it from a Windows machine, but I double (and triple) checked that the filename extension is .py (not .txt or other).
Any suggestions?
Please sign in to leave a comment.
Comments
7 comments