How can we help?


Custom User Uploaded Weather Service and Reboots

Comments

7 comments

  • Avatar
    RainMachine Nicholas

    Hi Jens,

    No, it not the expected behavior. What RainMachine model do you use ? Any error on the system logs after parser upload/run ? Could it have any name conflict (class name) with other parsers ?

  • Avatar
    Jens Jungmann

    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'
  • Avatar
    Richard Mann

    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.

  • Avatar
    RainMachine Nicholas

    I will probably need a full log after reboot, I cannot replicate on our test RainMachines, but I'm uploading from Linux/MacOS. Parsers are still there after a reboot in the User Uploaded tab in the web ui. 

  • Avatar
    Jens Jungmann

    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.

  • Avatar
    Richard Mann

    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.

  • Avatar
    Jason Bottjen

    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.