Comments (9)
I pushed a change to resolve this. Let me know if it works better.
from vuegraf.
So far its working. Was the 1,2,3 channel name renamed to exclude the 1,2,3 in a recent update?
from vuegraf.
Not that I know of. Mine still shows a "1,2,3" channel number, if that's what you're referring to. The channel name has always matched the name that is entered into the Emporia mobile app.
from vuegraf.
I have 2 VUE in my account it looks like the detailed info is only being pulled for one of them not the other:
Also you can see the Right1,2,3 is gone, now its just reported as "Right"
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-1,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-2,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-3,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-4,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-5,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-6,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-7,host=telegraf_vue usage=0.10997020403544108 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-8,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-9,host=telegraf_vue usage=0.9028270562489827 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-10,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-11,host=telegraf_vue usage=0 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-12,host=telegraf_vue usage=7.622413738568625 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-13,host=telegraf_vue usage=113.55591757297516 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-15,host=telegraf_vue usage=108.519766998291 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Left-Balance,host=telegraf_vue usage=-230.71089557011922 1629901269039036000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right,host=telegraf_vue usage=1107.3341161092121 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-1,host=telegraf_vue usage=60.80668983459472 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-2,host=telegraf_vue usage=0 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-3,host=telegraf_vue usage=0 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-4,host=telegraf_vue usage=313.795746866862 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-5,host=telegraf_vue usage=64.13424002329508 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-6,host=telegraf_vue usage=68.4235819498698 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-7,host=telegraf_vue usage=90.26313540140788 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-8,host=telegraf_vue usage=342.6018732706705 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-9,host=telegraf_vue usage=0 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-10,host=telegraf_vue usage=7.565475654602051 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-11,host=telegraf_vue usage=14.98960475921631 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-12,host=telegraf_vue usage=0 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-13,host=telegraf_vue usage=112.76012763977052 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-14,host=telegraf_vue usage=0 1629901329255249000
energy_usage,account_name=Home,detailed=False,device_name=Home-Right-Balance,host=telegraf_vue usage=31.99364070892337 1629901329255249000
That changed after the latest update I pulled, previously it was Right1,2,3
from vuegraf.
I'm not sure what caused your channel number to be concatenated to your channel name like that, especially without a hyphen. I checked back 2 weeks ago and my influxDB does not have 1,2,3 appended to my main:
> select * from energy_usage where device_name =~ /Right/ and time > now()-14d and detailed='False'
name: energy_usage
time account_name detailed device_name usage
---- ------------ -------- ----------- -----
2021-08-11T14:46:36.653261Z Jason Ertel False Right Panel 606.0146715164185
2021-08-11T14:47:36.803002Z Jason Ertel False Right Panel 601.2132813135784
The lookupChannelName() method was refactored in the latest release, and that's where the appending occurs, but I cannot see how the pre-refactor version would have led the a channel name like "Right1,2,3".
As far as the detail data only pulled for one, that again I don't see in my local environment. Both Left and Right panels are showing detailed data. Are your devices nested into each other? It shouldn't matter but just trying to think of something that might be different from my setup.
from vuegraf.
They are not nested.
from vuegraf.
I am not sure if this is the cause or not, but i see in the logs its throwing an error every hour when it tries to pull the detailed data:
today at 11:27:46 AM 2021-08-25 15:27:46.096746 | INFO | Submitting datapoints to database; account="Home"; points=104779
today at 11:28:22 AM 2021-08-25 15:28:22.826134 | ERROR | Failed to record new usage data: (<class 'requests.exceptions.ConnectionError'>, ConnectionError(ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))), <traceback object at 0x7f1f38adfa80>)
today at 11:28:22 AM Traceback (most recent call last):
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
today at 11:28:22 AM httplib_response = self._make_request(
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 445, in _make_request
today at 11:28:22 AM six.raise_from(e, None)
today at 11:28:22 AM File "<string>", line 3, in raise_from
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 440, in _make_request
today at 11:28:22 AM httplib_response = conn.getresponse()
today at 11:28:22 AM File "/usr/local/lib/python3.9/http/client.py", line 1349, in getresponse
today at 11:28:22 AM response.begin()
today at 11:28:22 AM File "/usr/local/lib/python3.9/http/client.py", line 316, in begin
today at 11:28:22 AM version, status, reason = self._read_status()
today at 11:28:22 AM File "/usr/local/lib/python3.9/http/client.py", line 285, in _read_status
today at 11:28:22 AM raise RemoteDisconnected("Remote end closed connection without"
today at 11:28:22 AM http.client.RemoteDisconnected: Remote end closed connection without response
today at 11:28:22 AM
today at 11:28:22 AM During handling of the above exception, another exception occurred:
today at 11:28:22 AM
today at 11:28:22 AM Traceback (most recent call last):
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
today at 11:28:22 AM resp = conn.urlopen(
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
today at 11:28:22 AM retries = retries.increment(
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 532, in increment
today at 11:28:22 AM raise six.reraise(type(error), error, _stacktrace)
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise
today at 11:28:22 AM raise value.with_traceback(tb)
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
today at 11:28:22 AM httplib_response = self._make_request(
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 445, in _make_request
today at 11:28:22 AM six.raise_from(e, None)
today at 11:28:22 AM File "<string>", line 3, in raise_from
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 440, in _make_request
today at 11:28:22 AM httplib_response = conn.getresponse()
today at 11:28:22 AM File "/usr/local/lib/python3.9/http/client.py", line 1349, in getresponse
today at 11:28:22 AM response.begin()
today at 11:28:22 AM File "/usr/local/lib/python3.9/http/client.py", line 316, in begin
today at 11:28:22 AM version, status, reason = self._read_status()
today at 11:28:22 AM File "/usr/local/lib/python3.9/http/client.py", line 285, in _read_status
today at 11:28:22 AM raise RemoteDisconnected("Remote end closed connection without"
today at 11:28:22 AM urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
today at 11:28:22 AM
today at 11:28:22 AM During handling of the above exception, another exception occurred:
today at 11:28:22 AM
today at 11:28:22 AM Traceback (most recent call last):
today at 11:28:22 AM File "/opt/vuegraf/vuegraf.py", line 228, in <module>
today at 11:28:22 AM influx.write_points(usageDataPoints)
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/influxdb/client.py", line 603, in write_points
today at 11:28:22 AM return self._write_points(points=points,
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/influxdb/client.py", line 681, in _write_points
today at 11:28:22 AM self.write(
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/influxdb/client.py", line 413, in write
today at 11:28:22 AM self.request(
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/influxdb/client.py", line 332, in request
today at 11:28:22 AM response = self._session.request(
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
today at 11:28:22 AM resp = self.send(prep, **send_kwargs)
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
today at 11:28:22 AM r = adapter.send(request, **kwargs)
today at 11:28:22 AM File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 498, in send
today at 11:28:22 AM raise ConnectionError(err, request=request)
today at 11:28:22 AM requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
today at 11:29:23 AM 2021-08-25 15:29:23.070855 | INFO | Submitting datapoints to database; account="Home"; points=31
from vuegraf.
Check your influx logs to see if it has a reason for closing the socket.
from vuegraf.
Thanks, I thought it was being disconnected by the Emporia API side not Influx.
Thanks for all the help today.
from vuegraf.
Related Issues (20)
- Devices are not named correctly per JSON
- usageDataPoints timestamps from Emporia HOT 3
- influx requires minimum 8 characters for password, writeup say to use 'vuegraf', but this is < 8 characters HOT 1
- Missing data due to Internet, System or other outage HOT 3
- PyEmVue updated -- get_usage_over_time no longer supported? HOT 1
- [Feature Request] Pull historical data on first run HOT 7
- Smart Plug data not submitting to Influx HOT 1
- Minimal Configuration doc HOT 1
- Emporia connection or local container issue? HOT 4
- InfluxDB login details don't allow for tokens (required for InfluxDB v2) HOT 7
- Failed to record new usage data: (<class 'TypeError'>, TypeError("argument of type 'NoneType' is not iterable"), <traceback object at 0x7fcd6f6ca1c0>) HOT 2
- Is it possible to create a Virtual datapoint for 'Balance' HOT 2
- Add Detailed Tag to InfluxDB v2 output HOT 1
- issues with smart plugs after API update 8/31/21 HOT 5
- Starting a couple days ago, I am getting a Fatal Error at launch HOT 1
- Doesn't work with HTTPS HOT 3
- Already Exsisiting Database HOT 1
- detailedEnabled variable is not used HOT 1
- latest image throwing 403 Client Error: Forbidden for url: https://api.emporiaenergy.com/cu... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuegraf.