softwaredefinedbuildings / smap Goto Github PK
View Code? Open in Web Editor NEWsmap - Simple Measurement and Actuation Profile
License: Other
smap - Simple Measurement and Actuation Profile
License: Other
I am trying to post a CSV file using cURL. Following are the contents of the file:
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378029600,34
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378031400,34
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378033200,34
Command I am using:
curl -XPOST -d @testupload.csv -H "Content-Type: text/csv" http://hostname.com/add/key
Error:
Invalid CSV line: 5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378
029600,345dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378031400,34
5dfb6d2a-8b69-5946-9334-a1fb8c4237b5,/weather/temperature,1378033200,34
Any idea what might be wrong here?
The driver for the rainforest eagle will sometimes refuse to give data; probably blocking on a socket read. Restarting the driver seems to fix the problem, but only temporarily (see the gaps at http://ciee.cal-sdb.org/plot?onkvvrreCa8ThWRhz)
when method add_actuator of Timeseries is called, SmapSchemaException is raised.
I have observed that it is related to package Avro which is updated on 12th February to version 1.9. To avoid this exception, use Avro v1.8.1
Dict comprehensions are only supported in python >= 2.7; some people are still using smap with python 2.6, and I think we should continue to support them. This:
https://github.com/SoftwareDefinedBuildings/smap/blob/master/python/smap/server.py#L233
Prevents sMAP from working since it's now imported by default...
The version dependency on twistd needs to be corrected for the installation here: https://github.com/SoftwareDefinedBuildings/smap/wiki/Installation
At least version 12 does not include TPC6ClientEndpoint which the current version of sMAP require. Upgrading to version 15 solved the issue.
The sMAP archiver needs some infrastructure in postgres for handling subscription keys. Unfortunately, the tables for that are made when you install powerdb2.
Ideally the archiver should be separate from whichever frontend you choose to use.
On Ubuntu 14.04.1 with python 2.7.6
After a clean install by:
$ sudo add-apt-repository ppa:cal-sdb/smap
$ sudo apt-get update
$ sudo apt-get install -y python-smap readingdb powerdb2
The folder /var/run/smap was not created, so the archiver process could not start. I' ve created it this way:
$ sudo mkdir /var/run/smap
$ sudo chown -R smap /var/run/smap
And restart the archiver process in supervisorctl.
After that I tried to send the file data.json like the example here and when I tried to retrieve this data in smpa-query using this command
select data in ("01/01/2010" , now) where uuid = "d24325e6-1d7d-11e2-ad69-a7c2fa8dba61"
or even in the browser at http://localhost:8079/api/data
it returned this error
Error: 'NoneType' object has no attribute 'lower'
Any idea how can I solve this on unitoftime branch.
Thanks a lot.
Jeovane
@jeovanevs
Ubuntu 14.04
Python 2.7.14
pip 20.3.4
https://pythonhosted.org/Smap/en/2.0/install.html
Hello developer, I'm trying to catch the above installation documentation. And I was stuck there
$ svn checkout http://smap-data.googlecode.com/svn/trunk smap-data-read-only
I assume the required source files for smap-archiver
were missing.
Therefore, I could not smap-archiver
when I tried to twistd
with no arguments
@stevedh Could you please share me some hints?
I see this at the bottom of the Readme.md file. Is this cause for concern? Also is this being actively worked on anymore?
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.