smeyn / zeversolar Goto Github PK
View Code? Open in Web Editor NEWPython reader from a Zever Solar web server
Python reader from a Zever Solar web server
The script is great, however it cannot be run on Linux machine as msvcrt is Windows only library. I would like to use my Raspberry Pi to collect data from the inverter. Unfortunately, I could not get it to work as my experience with Python is non-existent. Would it be possible to port it?
Hi,
I noticed that you have an api key in the source code of your project.
Im new to py so have no idea what im doing but receiving the following problems:
C:\Users\Leigh>pip install -r requirements.txt
Collecting certifi==2018.8.24
Using cached certifi-2018.8.24-py2.py3-none-any.whl (147 kB)
Collecting chardet==3.0.4
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting cycler==0.10.0
Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Requirement already satisfied: docopt==0.6.2 in c:\users\leigh\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 4)) (0.6.2)
Collecting idna==2.7
Using cached idna-2.7-py2.py3-none-any.whl (58 kB)
Collecting kiwisolver==1.0.1
Using cached kiwisolver-1.0.1.tar.gz (31 kB)
Preparing metadata (setup.py) ... done
Collecting matplotlib==2.2.3
Using cached matplotlib-2.2.3.tar.gz (36.8 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [61 lines of output]
============================================================================
Edit setup.cfg to change the build optionsBUILDING MATPLOTLIB matplotlib: yes [2.2.3] python: yes [3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)]] platform: yes [win32] REQUIRED DEPENDENCIES AND EXTENSIONS numpy: yes [not found. pip may install it below.] install_requires: yes [handled by setuptools] libagg: yes [pkg-config information for 'libagg' could not be found. Using local copy.] freetype: no [The C/C++ header for freetype (freetype2\ft2build.h) could not be found. You may need to install the development package.] png: no [The C/C++ header for png (png.h) could not be found. You may need to install the development package.] qhull: yes [pkg-config information for 'libqhull' could not be found. Using local copy.] OPTIONAL SUBPACKAGES sample_data: yes [installing] toolkits: yes [installing] tests: no [skipping due to configuration] toolkits_tests: no [skipping due to configuration] OPTIONAL BACKEND EXTENSIONS macosx: no [Mac OS-X only] qt5agg: no [PySide2 not found; PyQt5 not found] qt4agg: no [PySide not found; PyQt4 not found] gtk3agg: no [Requires pygobject to be installed.] gtk3cairo: no [Requires cairocffi or pycairo to be installed.] gtkagg: no [Requires pygtk] tkagg: yes [installing; run-time loading from Python Tcl / Tk] wxagg: no [requires wxPython] gtk: no [Requires pygtk] agg: yes [installing] cairo: no [cairocffi or pycairo not found] windowing: yes [installing] OPTIONAL LATEX DEPENDENCIES dvipng: no ghostscript: no latex: no pdftops: no OPTIONAL PACKAGE DATA dlls: no [skipping due to configuration] ============================================================================ * The following required packages can not be built: * freetype, png * Please check http://gnuwin32.sourceforge.net/packa * ges/freetype.htm for instructions to install * freetype * Please check http://gnuwin32.sourceforge.net/packa * ges/libpng.htm for instructions to install png [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed× Encountered error while generating package metadata.
╰─> See above for output.note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
however i have Png and freetype installed:
C:\Users\Leigh>pip install pypng
Requirement already satisfied: pypng in c:\users\leigh\appdata\local\programs\python\python310\lib\site-packages (0.0.21)C:\Users\Leigh>pip install freetype-py
Requirement already satisfied: freetype-py in c:\users\leigh\appdata\local\programs\python\python310\lib\site-packages (2.3.0)
I also get the following if i skip to the next step:
C:\Users\Leigh>py zever.py -initDB
Traceback (most recent call last):
File "C:\Users\Leigh\zever.py", line 12, in
import requests
ModuleNotFoundError: No module named 'requests'
Hi, can somebody help me install this?
Hello, thanks for this code !
I have the following parsing issue :
The data that is collected for PAC_W is good, but for E_TODAY, the first 0 is lost. Please review the following selection of data from the database. The E_TODAY data jumps from 4.99, 5 to 5.2, 5.3 ... from 5.9 to 5.11, 5.12.
It seems like when the first decimal is 0, it is lost in parsing ?
date | PAC_W | E_TODAY
20-09-19 13:44 | 1849 | 4.97
20-09-19 13:45 | 1790 | 4.99
20-09-19 13:45 | 1825 | 5
20-09-19 13:46 | 1808 | 5.2
20-09-19 13:46 | 1822 | 5.3
20-09-19 13:47 | 1807 | 5.5
20-09-19 13:47 | 1767 | 5.6
20-09-19 13:48 | 1609 | 5.8
20-09-19 13:48 | 1836 | 5.9
20-09-19 13:49 | 1722 | 5.11
20-09-19 13:49 | 1505 | 5.12
20-09-19 13:50 | 1621 | 5.13
Raspberry pi. Python3, all requirements met and installed. no error messages are recorded.
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.