Comments (8)
are you viewing source? The spark-cli is hitting the same api endpoint as in the browser, so there shouldn't be a difference there. We could optionally add a 'format' param to those endpoints to get a friendlier HTML view back, which might be nice.
from spark-server.
Hmm.. There's 2 other guys who had the same issue. Doing it with the spark cloud publish events display well in just a chrome tab but not the local cloud
from spark-server.
okay, weird, I'll look into it. Thanks!
from spark-server.
I think I am one of those guys ;) currently I did not get any result if i try to follow bko´s tutorial: https://community.spark.io/t/tutorial-getting-started-with-spark-publish/3422.
When I try to open the event with my browser (tested FF, chrome, safari) I get a stream that tries to save the file event. Sounds nice but a stream doesn´t ends, so I opened up the events.part file and the content is simply ":ok".
Code works with :spark: ☁️ but not in my local cloud instance. Sadly there is no output in the console I can paste in here. Let me know if I can help you!
from spark-server.
Anything new on this?
It would be awesome if I can red my events again from my website?
Is there an update to the local cloud on the horizon or does anyone have looked into that issue?
from spark-server.
I had similar issues using chromium, spark-cli or curl with a local cloud instance:
$ spark subscribe Alert
Subscribing to "Alert" from the firehose (all cores)
Listening to: /v1/events/Alert
and nothing more.
Same thing with curl:
$ curl -H "Authorization: Bearer ABCaccess_token789" http://10.1.1.1:8080/v1/events/Alert
:ok
always an empty line.
Serial debug shows that the event fires (at least the part where Spark.publish() is called), so I would reckon that spark-server somehow doesn't deal with the events. Not having events would mean having to poll all data all the time, which really is a show killer for many use cases.
Update:
After playing a bit more and realizing that my spark firmware code actually publishes events every 200ms when triggered, I throttled down to 500ms delay and suddenly I could see the events with curl and the spark-cli. So, if you're having similar issues, try to check/reduce the publish rate and see if that may help. It also worked in Chromium Version 37.0.2062.120 (281580) (64-bit) Browser Tab via:
http://10.1.1.1:8080/v1/events/Alert?access_token=ABCaccess_token789
from spark-server.
I think only spark subscribe mine
works for now
from spark-server.
Same problem here. I can see the event in Spark-Cli if i subscribe to all events but can't on my web implantation.
from spark-server.
Related Issues (20)
- OTA firmware update for Photons not working HOT 15
- Photons subscribed to SSEs do not return data HOT 1
- Subscribing to SSE using prefix filter does not work
- Installing dependencies fails HOT 3
- photon not works with the spark-server HOT 1
- Recommended Node.js version HOT 9
- Suggestion: safe mode healing / fleet management HOT 2
- SparkServer in production HOT 3
- Invalid CoAP version HOT 2
- Every time after "particle keys doctor core_id", "particle list" have no device which just added.
- Error: Invalid CoAP version HOT 5
- Not compatible with 0.5.x firmware HOT 1
- Subscribe does not work HOT 2
- device list is not udpated after addition of new Photon
- 0.6.0-rc.2 firmware no longer able to connect to spark-server HOT 8
- What are the features that are present only on the Particle cloud ? HOT 2
- How does this compare to the cloud server?
- Give this Repo some love :)
- Date Time format for DateTime Field HOT 1
- Photon handshake decryption error
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 spark-server.