I have a C program (Linux) that gets the forecast and inserts it index.php, 
it needs to run right before the rsync report. The trouble is i cant get it 
patched into rsyncupload.py properly
Here is what i have, the log statement never makes an entry into 
/var/log/weewx.log even tho debug=1 in the weew.conf file (this is weewx 
4.10.2). It would be even better if i could create a user module that would 
run before rsync, but i tried and tried and couldn't get it right. I've 
played with subprocess.call and subprocess.run also. It needs to wait till 
forecast is done.
if __name__ == '__main__':
    import configobj

    import weewx
    import weeutil.logger

    weewx.debug = 1

    weeutil.logger.setup('rsyncupload', {})

    log.info("rsyncupload: executing forecast")
    os.system('"/usr/local/bin/weewx/skins/ss/forecast"')

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e4f5e160-4f69-441a-8a4d-ff192cbd46e6n%40googlegroups.com.

Reply via email to