42wim / plugctl Goto Github PK
View Code? Open in Web Editor NEWSmartplug Maginon controller
License: GNU General Public License v2.0
Smartplug Maginon controller
License: GNU General Public License v2.0
2015/02/15 10:47:59,0.88,20.52,1.11,234.70
I have a consuption of 20 watts of 234.7 Volts
Still it tells me i'm using 0.88 Amps, so something is wrong in the conversion ?
This is a suggestion but for me the graph is too small in width since i only look at it from my windows box so for now i keep changing the sources get 1600 pixels in width for the graph. When graph is wider it can display more data so maybe it's not a bad idea to be able to change (at least) the width of the graph with a command line parameter
Hi,
Thanks for your work on this. It's exactly what I'm after.
Is there any prep work I need to do on the device itself, or am I missing something?
I've tried a few commands but it says it "can't connect".
[email protected]:~/.go/bin$ ping -c 2 192.168.8.76
PING 192.168.8.76 (192.168.8.76) 56(84) bytes of data.
64 bytes from 192.168.8.76: icmp_seq=1 ttl=255 time=6.09 ms
64 bytes from 192.168.8.76: icmp_seq=2 ttl=255 time=5.97 ms
[email protected]:~/.go/bin$ ./plugctl -ip 192.168.8.76 -show info
2019/07/04 20:39:26 can't connect
Hi,
As i mentioned before "/stream" is not working with me. I looked into the problem myselve and the problem is that the javascript keeps getting a cached version of "/read.json" resulting in never changing data. I have this problem on internet explorer 11 but not in Firefox.
Firefox screenshot taken in same timeframe as internet explorer
The fix is rather simple.
just add an ever changing value as a parameter for getting the json value like so:
window.intervalId = setInterval(function () {
dat=new Date();
$.getJSON('/read.json?t=' + dat.toString() , function(data) {
d.push([new Date(),data[1],data[2],data[3],data[4]])
g.updateOptions( { 'file': d } );
});
}, 1000);
and it works in internet explorer as well
/history sometimes has the same problem as well, i couldn't get the data for the last hour, i suspect, but haven't looked into this that it's the same problem. Internet explorer is getting the data from it's cache
warning: code.google.com is shutting down; import path code.google.com/p/gcfg will stop working
"code.google.com/p/gcfg"
should become:
"gopkg.in/gcfg.v1"
in helpers.go
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.