glennmckechnie / weewx-wxobs Goto Github PK
View Code? Open in Web Editor NEWextracts archival data from the weewx database using php
License: GNU General Public License v3.0
extracts archival data from the weewx database using php
License: GNU General Public License v3.0
heres the error issue which the data doesnt shown:
Warning: require(): open_basedir restriction in effect. File(/usr/share/php/wxobs_weewx.inc) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd5/169/1132169) in /storage/ssd5/169/1132169/public_html/pimohweewx/wxobs/index.php on line 79
Warning: require(/usr/share/php/wxobs_weewx.inc): failed to open stream: Operation not permitted in /storage/ssd5/169/1132169/public_html/pimohweewx/wxobs/index.php on line 79
Fatal error: require(): Failed opening required '/usr/share/php/wxobs_weewx.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd5/169/1132169/public_html/pimohweewx/wxobs/index.php on line 79
heres my site to it: http://pimohweather.webutu.com/pimohweewx/wxobs/index.php
I hope you may assist me how to resolve this. Thank You
after upgrading weewx to the new release of v5.0.1, weewx-wxobs start to give error of permission denied, the file affected is "wxobs_weewx.inc" in "/usr/share/php" folder.
we used this command: "sudo chmod 777 /usr/share/php/wxobs_weewx.inc" and it seem to cure the problem but we are not sure if it is safe and ok to change the file permission.
do you support this change or have other way to make it work with newly upgraded weewx v5.01
Thank you
syslog:
pi4 weewxd[419]: INFO weewx.manager: Added record 2024-02-07 04:50:00 +03 (1707270600) to daily summary in 'weewx.sdb'
pi4 weewxd[419]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 19.54 seconds
pi4 weewxd[419]: INFO weewx.imagegenerator: Generated 21 images for report SeasonsReport in 0.77 seconds
pi4 weewxd[419]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
pi4 weewxd[419]: ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
pi4 weewxd[419]: ERROR weewx.reportengine: **** [Errno 13] Permission denied: '/usr/share/php/wxobs_weewx.inc'
pi4 weewxd[419]: ERROR weewx.reportengine: **** Traceback (most recent call last):
pi4 weewxd[419]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
pi4 weewxd[419]: ERROR weewx.reportengine: **** obj.start()
pi4 weewxd[419]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/reportengine.py", line 409, in start
pi4 weewxd[419]: ERROR weewx.reportengine: **** self.run()
pi4 weewxd[419]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 163, in run
pi4 weewxd[419]: ERROR weewx.reportengine: **** self.init_extensions(gen_dict[section_name])
pi4 weewxd[419]: ERROR weewx.reportengine: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 196, in init_extensions
pi4 weewxd[419]: ERROR weewx.reportengine: **** self.search_list_objs.append(klass(self))
pi4 weewxd[419]: Traceback (most recent call last):
pi4 weewxd[419]: File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
pi4 weewxd[419]: obj.start()
pi4 weewxd[419]: File "/usr/share/weewx/weewx/reportengine.py", line 409, in start
pi4 weewxd[419]: self.run()
pi4 weewxd[419]: File "/usr/share/weewx/weewx/cheetahgenerator.py", line 163, in run
pi4 weewxd[419]: self.init_extensions(gen_dict[section_name])
pi4 weewxd[419]: File "/usr/share/weewx/weewx/cheetahgenerator.py", line 196, in init_extensions
pi4 weewxd[419]: self.search_list_objs.append(klass(self))
pi4 weewxd[419]: File "/etc/weewx/bin/user/wxobs.py", line 567, in init
pi4 weewxd[419]: php_inc = open(self.include_file, 'w')
pi4 weewxd[419]: PermissionError: [Errno 13] Permission denied: '/usr/share/php/wxobs_weewx.inc'
pi4 weewxd[419]: ERROR weewx.reportengine: **** File "/etc/weewx/bin/user/wxobs.py", line 567, in init
pi4 weewxd[419]: ERROR weewx.reportengine: **** php_inc = open(self.include_file, 'w')
pi4 weewxd[419]: ERROR weewx.reportengine: **** PermissionError: [Errno 13] Permission denied: '/usr/share/php/wxobs_weewx.inc'
pi4 weewxd[419]: ERROR weewx.reportengine: **** Generator terminated
pi4 weewxd[419]: INFO weewx.reportengine: Copied 6 files to /var/www/html/weewx/wxobs
I have installed the latest version of weewx-wxobs v0.7.6 and it is working greate but I could not figure out how to link to wxobs php page from weewx main page.
what I do now is having two bookmarks for weewx and wxobs
wxobs page at (192...*/weewx/wxobs/index.php) and from here I can go back to main page of weewx by clicking on (โฐ Current Conditions)
weewx page (192...*/weewx/index.html) here I can not find away to go to wxobs page.
is this by design or am I missing something?
I've installed this, restarted weewx and get the following error in syslog:
Nov 20 10:01:00 weatherpi weewx[3462]: reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.Che etahGenerator' Nov 20 10:01:00 weatherpi weewx[3462]: **** [Errno 2] No such file or directory: '/usr/share/php/wxobs_weewx.inc' Nov 20 10:01:00 weatherpi weewx[3462]: **** Traceback (most recent call last): Nov 20 10:01:00 weatherpi weewx[3462]: **** File "/usr/share/weewx/weewx/reportengine.py", line 204, in run Nov 20 10:01:00 weatherpi weewx[3462]: **** obj.start() Nov 20 10:01:00 weatherpi weewx[3462]: **** File "/usr/share/weewx/weewx/reportengine.py", line 300, in start Nov 20 10:01:00 weatherpi weewx[3462]: **** self.run() Nov 20 10:01:00 weatherpi weewx[3462]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 157, in run Nov 20 10:01:00 weatherpi weewx[3462]: **** self.initExtensions(gen_dict[section_name]) Nov 20 10:01:00 weatherpi weewx[3462]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 201, in initE xtensions Nov 20 10:01:00 weatherpi weewx[3462]: **** self.search_list_objs.append(class_(self)) Nov 20 10:01:00 weatherpi weewx[3462]: **** File "/usr/share/weewx/user/wxobs.py", line 461, in __init__ Nov 20 10:01:00 weatherpi weewx[3462]: **** php_inc = open(self.include_file, 'w') Nov 20 10:01:00 weatherpi weewx[3462]: **** IOError: [Errno 2] No such file or directory: '/usr/share/php/wxobs_wee wx.inc' Nov 20 10:01:00 weatherpi weewx[3462]: **** Generator terminated Nov 20 10:01:00 weatherpi weewx[3462]: copygenerator: copied 0 files to /var/www/html/weewx/wxobs
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.