xively / xively-js Goto Github PK
View Code? Open in Web Editor NEWThe official JavaScript library for interfacing web apps with Xively™
Home Page: http://xively.github.com/xively-js/
License: Other
The official JavaScript library for interfacing web apps with Xively™
Home Page: http://xively.github.com/xively-js/
License: Other
I have no problem running the code locally in Dreamweaver, but when I upload to the server it doesn't work. Thoughts? I also tried to do strictly as a JSON request, but it kept requesting the password.
I want to setup a site with a single button that sets the number 255 to a datastream and I have been unable to do that, can someone please help me?
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>Click the button to trigger a function.</p>
<button onclick="myFunction()">TEST</button>
<p id="demo"></p>
</body>
</html>
<script>
src="http://d23cj0cdvyoxg0.cloudfront.net/xivelyjs-1.0.3.min.js"
src="http://d23cj0cdvyoxg0.cloudfront.net/xivelyjs-1.0.3.min.js"
xively.setKey( "ti9L3SW3MUnBYK2F6SHlRUT0g" );
function myFunction()
{
xively.datastream.update("13889818", "Toggle", "255", callback(data))
}
</script>
This is a javascript library and anyone can just do a view source on page and see my Xively API key. After that, anyone can impersonate me with my Xively API Key by just sending that value in a request Header.
This is a major security issue.
Hi,
I am new to Xively. Right now I am trying to search a feed based on its location. Can someone tell me how to do this on javascript?
Thanks,
Hi,
How may I add time stamp to a value I send using xively.datastream.update?
I already tried the code shown in #5 and it works fine,thanks!..But now, I would like to add timestamp to the value I send.
Where and how( date format) should I include timestamp within the following instruction:
xively.datastream.update(feedID, datastreamID, {current_value: temp}, function(data){ alert(temp);})
Thanks for your attention to this matter
Sincerely,
Jesus
Having an issue with the button functionality ( lights -and TV) when ported to my own Xively feed. Did rename the feeds etc. the temperature function works fine. what am I missing
I did setup device can read temperature on xively.
My question: How to control my device with xively-js?
Do I have to create a web page with jquery + AP key as in tutorial and upload to a server?
Can I use xively server? as in demo?
hi guys
could you please tell me how i can replace this code that use a toggle with a normal button? instead of toggle ON OFF i would like 2 buttons
1 ON and 2 OFF
this is the code i took from index of sample-app
Hi,
I have a test dashboard setup which works at:
http://www.dndltd.com.tr/m2m/test.html
When I edit my API key at Xively.com and set www.dndltd.com.tr as the referer (I would like to restrict access and make it available only from www.dndltd.com.tr) the javascript function
xively.datastream.get() works fine but
xively.datastream.subscribe() fails which is needed for live updating.
I could not figure out why this happens.
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.