Coder Social home page Coder Social logo

xively-js's People

Contributors

baz44 avatar errordeveloper avatar frasermac avatar gberkowitzlmi avatar levent avatar paulbellamy avatar tinjaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xively-js's Issues

Runs local but not remotely....

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.

-Newbie- Help with the Javascript library

Hi, I am trying to practice building a simple web page with a button that, when clicked, puts a value of 255 to one of my datastreams. Can anyone indicate/edit this code to point out what is wrong with it:

capture

Trying to use Xively-JS and not finding simple documentation with simpler examples

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>

security issue - Xively API Key is exposed in Javascript

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.

Search Feed

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,

How to add timestamp to a single datapoint?

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

Sample App button functionality

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

server for xively-js ?

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?

Button instead of toggle

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

Lights
ON OFF

this is the code i took from index of sample-app

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.