Comparing version 1.0.0 to 1.0.1
@@ -77,7 +77,2 @@ /// <reference path="typings/tsd.d.ts" /> | ||
function setTargetTemperature(temperature, callback) { | ||
/* | ||
"Param xx: ((soll)*2) in hex. Alle Hexwerte in Kleinbuchstaben. | ||
z.B. Soll = 20C. 20*2 = 40; 40=28h" (wtf) | ||
*/ | ||
// let targetTemp = (temperature * 2).toString(16); | ||
// TODO: TEST THIS | ||
@@ -148,4 +143,3 @@ var opUrl = getCANUrl(radiatorClientName, "SetTargetTemp"); | ||
return { | ||
/* "Angabe in 1/100C" */ | ||
value: parseInt(temp) / 100, | ||
value: parseInt(temp), | ||
unit: "°C" | ||
@@ -152,0 +146,0 @@ }; |
@@ -1,4 +0,2 @@ | ||
var dts = require("dts-bundle"); | ||
dts.bundle({ | ||
require("dts-bundle").bundle({ | ||
name: "flipdot", | ||
@@ -5,0 +3,0 @@ main: "build/flipdot.d.ts", |
@@ -146,9 +146,2 @@ /// <reference path="typings/tsd.d.ts" /> | ||
{ | ||
/* | ||
"Param xx: ((soll)*2) in hex. Alle Hexwerte in Kleinbuchstaben. | ||
z.B. Soll = 20C. 20*2 = 40; 40=28h" (wtf) | ||
*/ | ||
// let targetTemp = (temperature * 2).toString(16); | ||
// TODO: TEST THIS | ||
@@ -248,4 +241,3 @@ let opUrl = getCANUrl(radiatorClientName, "SetTargetTemp"); | ||
return { | ||
/* "Angabe in 1/100C" */ | ||
value: parseInt(temp) / 100, | ||
value: parseInt(temp), | ||
unit: "°C" | ||
@@ -252,0 +244,0 @@ }; |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ // Type definitions for form-data |
@@ -0,0 +0,0 @@ // Type definitions for request |
@@ -0,0 +0,0 @@ /// <reference path="form-data/form-data.d.ts" /> |
@@ -10,3 +10,3 @@ { | ||
"main": "build/flipdot.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": { | ||
@@ -13,0 +13,0 @@ "name": "Niklas Mollenhauer", |
@@ -1,5 +0,9 @@ | ||
# node-flipdot [![Build Status](https://travis-ci.org/flipdot/node-flipdot.svg?branch=master)](https://travis-ci.org/flipdot/node-flipdot) ![Dependency Status](https://david-dm.org/flipdot/node-flipdot.svg) | ||
# node-flipdot [![Build Status](https://travis-ci.org/flipdot/node-flipdot.svg?branch=master)](https://travis-ci.org/flipdot/node-flipdot) ![Dependency Status](https://david-dm.org/flipdot/node-flipdot.svg) ![npm version](https://img.shields.io/npm/v/flipdot.svg) | ||
A web based client API for the flipdot hackerspace Kassel. | ||
``` | ||
npm install flipdot | ||
``` | ||
## Features | ||
@@ -60,2 +64,5 @@ | ||
#### TODO | ||
- Open door using SSH private key | ||
### Q Sample | ||
@@ -79,1 +86,12 @@ ```JavaScript | ||
``` | ||
### TypeScript usage | ||
`npm install flipdot` | ||
```TypeScript | ||
/// <reference path="./node_modules/flipdot/build/flipdot.d.ts" /> | ||
import * as flipdot from "flipdot"; | ||
// use flipdot here | ||
// tsc --module CommonJS --target ES5 file.ts | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
881490
17
19317
96