Comments (10)
Wrong go version!
from gosdm630.
Raspbian offers Golang 1.7. Which version do I need ?
from gosdm630.
1.8, see #14
from gosdm630.
Thanks. I just tried building Golang 1.9.3 on Raspbian but it seems to be a no-go:
./make.bash
Building Go bootstrap tool.
cmd/dist
import cycle not allowed
package cmd/dist
imports bytes
imports errors
imports runtime
imports runtime/internal/atomic
imports runtime/internal/sys
imports runtime
Not even a clear error or anything like that. 'Import cycle not allowed' - good luck. In the docs it specifies needing 1.4 as a bootstrap compiler.
This Go language seems not so well standarized to me. We will end up with 10 versions of Go on our system when running 10 different Go apps :-(
Ouch, it means I cannot compile either Golang or GOSDM630 myselves. I might be quicker off just porting GOSDM630 to plain C or C++ ...
Are there any older versions available of GOSDM630 which I can still compile on Go 1.7 ?
from gosdm630.
Golang 1.8 from buster worked for me.
from gosdm630.
I used the latest stable Raspbian 'Stretch', which seems reasonable to me when installing a monitoring system to use the next upcoming years.
Are there any older versions available of GOSDM630 which I can still compile on Go 1.7 ?
from gosdm630.
Not sure if it matters if it seems reasonable. GOSDM needs go 1.8 and as for debian that's available as of buster, not stretch. You can easily install it from the testing repos.
from gosdm630.
I will give up on GOSDM630. It looked so promising to me by not low level addressing the modbus registers.
But on the other hand low level bit banging the modbus seems a much better route than compiling my own compiler which needs itselves old specific version to compile... What was wrong with C++ in the first place ?
As my RPi will be running much more software than just GOSDM630 I will not go for a beta Raspbian.
Issue can be closed as: unresolvable
from gosdm630.
I will give up on GOSDM630
Too bad- it's working perfectly stable for me.
bit banging the modbus seems a much better route than compiling my own compiler which needs itselves old specific version to compile...
There is no need to compile a compiler.
I will not go for a beta Raspbian.
There is no need to do so. All you need to do is to install a perfectly stable piece of software that has just not made it into the debian release train for stretch. Make yourself familiar with the debian release methodology and you'll understand this point. It has nothing to do with beta at all.
Issue can be closed as: unresolvable
It is resolvable. I've told you how. And you can close the issue yourself.
from gosdm630.
You're right I'm not so into Debian at the moment. I'm are RHEL specialist, so no beta software here :-)
I chose the latest Raspbian stable, updated that with the latest updates available and assumed to be ready to rock and roll.
I did see the search & replace trick in the repository online to switch to Buster. But I will wait untill I can do a dist-upgrade to Buster if ever needed.
All I notice as a Linux systems architect it gets more and more frustrating to compile custom apps which are not into the standard repositories. See this Golang issue; have 1.7, need 1.8, need 1.4 to build 1.9. Dependency hell anyone ?
Good news: In 2 hours I've tweaked/programmed a very basic Python modbus daemon which reads all the required SDM630 sensor values every 10 seconds and stores them into a database.
A second python script is able to read the timestamped records with values from the database and forward the values to any other application like Domoticz. If that part isn't working the energy data is still collected and stored and can be processed later.
Netto CPU Usage: 0.3%. I don't see why an app for retrieving these MODBUS values would need a custom Google programming language like Go. It has an 8MB binary memory footprint and uses many more CPU cycles than a basic python script which runs anywhere.
from gosdm630.
Related Issues (20)
- Unpublish homie meters/nodes/properties when closing HOT 1
- Problem building from source HOT 7
- Connect few meters to one dongle HOT 6
- SMA Current not properly decoded
- Failed to connect: no such file or directory HOT 5
- ModBus Adaptor error rate HOT 2
- Wrong values with sdm530 HOT 9
- precompiled 0.7.0 and 0.6.0 are the same (=0.6.09 HOT 2
- GPIO to switch between RX/TX HOT 2
- Divide by zero panic
- Building on RPi fails HOT 2
- mqtt Power(Watt) total and 1messageblock every 30sec? HOT 4
- [RFC] performance improvements HOT 2
- Need testers for Saia Burgess ALE3 implementation HOT 1
- Add new precompiled release HOT 22
- detect broken on master HOT 1
- Release 0.6.0 mqtt disconnected HOT 9
- Add more DVG4013 features HOT 4
- Implement MQTT discovery HOT 1
- Binary =/= 0.7.0 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 gosdm630.