weathermatic 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weathermatic.rb +63 -31
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e28492ac4f3228ff514d72a5daaefa3253a4dfb
4
- data.tar.gz: 1a88898be55a76472491d622afa8c96c05d7e7d0
3
+ metadata.gz: 403cc28cc7e98a3ea807ce3a6a4675d2ed9f9540
4
+ data.tar.gz: e5211ef1162797d30ba27d676d53463f54eaf8f4
5
5
  SHA512:
6
- metadata.gz: 3f0524b0bc25ae9522167fe7f341446d23fd22cdf4134279676947770295c0156df2e1b1a1828cdad4f4f7f53e0149ca102683f05fe250d45846124c3e598bd5
7
- data.tar.gz: 13d3691e6758ff967f094d16fc220289bd5966a07efdaa7e64a11bfb4161315a0fb0ec8b7ae86945525467b8d3971bf015542875df9be5c640ba4c2eb101bb10
6
+ metadata.gz: e42f820a526a5017b55e293d8a522256110cd0b77077899f2d1c3175d28643e67096c611b99d7c369f40c6dd085cf4f71697714e4e2cf969d7f06f5a0a46b0b6
7
+ data.tar.gz: 1de8ee69df00af0928a9ac89040ada4bf18177eadf11dedef445c091fab1b74d817cc771cc1da9e1229603bb9bb4a29a20120bb8f5c0e330da19bb60e729bb20
data/lib/weathermatic.rb CHANGED
@@ -436,108 +436,140 @@ class WeatherMatic
436
436
  # Usage: wm.site_usage(:site_id => 157, :controller_id => [794,750], :range_start => "2014-06-01", :range_end => "2014-07-25", :interval => 'w' )
437
437
 
438
438
  # Example Response: (all units are in gallons for this site)
439
- # {
440
- # "meta":{
439
+ # {
440
+ # "meta":{
441
441
  # "access":true,
442
442
  # "hmac":true,
443
443
  # "success":true,
444
- # "request":{
444
+ # "request":{
445
445
  # "range_start":"2014-06-01",
446
446
  # "range_end":"2014-07-25",
447
447
  # "interval":"w",
448
- # "controller_id":[
448
+ # "controller_id":[
449
449
  # "794",
450
450
  # "750"
451
451
  # ],
452
452
  # "zone_number":null,
453
- # "timestamp":"1407506612",
453
+ # "timestamp":"1407948694",
454
454
  # "action":"usage",
455
455
  # "controller":"api/v2/reports_sites",
456
456
  # "id":"157",
457
457
  # "format":"json",
458
- # "reports_site":{
458
+ # "reports_site":{
459
459
 
460
460
  # }
461
461
  # },
462
462
  # "message":null
463
463
  # },
464
- # "result":{
465
- # "site":{
464
+ # "result":{
465
+ # "site":{
466
466
  # "id":157,
467
467
  # "name":"Engineering Dept",
468
- # "controllers":[
469
- # {
468
+ # "controllers":[
469
+ # {
470
470
  # "id":750,
471
471
  # "name":"Andey's",
472
- # "usage":[
473
- # {
472
+ # "usage":[
473
+ # {
474
474
  # "gallons":1512,
475
+ # "seconds_ran":19166,
476
+ # "realtime_average_flow":null,
475
477
  # "date":"2014-06-02"
476
478
  # },
477
- # {
479
+ # {
478
480
  # "gallons":1454,
481
+ # "seconds_ran":16980,
482
+ # "realtime_average_flow":null,
479
483
  # "date":"2014-06-09"
480
484
  # },
481
- # {
485
+ # {
482
486
  # "gallons":1240,
487
+ # "seconds_ran":19788,
488
+ # "realtime_average_flow":null,
483
489
  # "date":"2014-06-16"
484
490
  # },
485
- # {
491
+ # {
486
492
  # "gallons":1620,
493
+ # "seconds_ran":16526,
494
+ # "realtime_average_flow":null,
487
495
  # "date":"2014-06-23"
488
496
  # },
489
- # {
497
+ # {
490
498
  # "gallons":1582,
499
+ # "seconds_ran":17794,
500
+ # "realtime_average_flow":null,
491
501
  # "date":"2014-06-30"
492
502
  # },
493
- # {
503
+ # {
494
504
  # "gallons":1217,
505
+ # "seconds_ran":15418,
506
+ # "realtime_average_flow":null,
495
507
  # "date":"2014-07-07"
496
508
  # },
497
- # {
509
+ # {
498
510
  # "gallons":1357,
511
+ # "seconds_ran":15333,
512
+ # "realtime_average_flow":null,
499
513
  # "date":"2014-07-14"
500
514
  # },
501
- # {
515
+ # {
502
516
  # "gallons":454,
517
+ # "seconds_ran":15325,
518
+ # "realtime_average_flow":null,
503
519
  # "date":"2014-07-21"
504
520
  # }
505
521
  # ]
506
522
  # },
507
- # {
523
+ # {
508
524
  # "id":794,
509
525
  # "name":"Plan-Id Test - 1 year basic",
510
- # "usage":[
511
- # {
526
+ # "usage":[
527
+ # {
512
528
  # "gallons":8306,
529
+ # "seconds_ran":32978,
530
+ # "realtime_average_flow":null,
513
531
  # "date":"2014-06-02"
514
532
  # },
515
- # {
533
+ # {
516
534
  # "gallons":9015,
535
+ # "seconds_ran":38352,
536
+ # "realtime_average_flow":null,
517
537
  # "date":"2014-06-09"
518
538
  # },
519
- # {
539
+ # {
520
540
  # "gallons":8068,
541
+ # "seconds_ran":35777,
542
+ # "realtime_average_flow":null,
521
543
  # "date":"2014-06-16"
522
544
  # },
523
- # {
545
+ # {
524
546
  # "gallons":8564,
547
+ # "seconds_ran":34419,
548
+ # "realtime_average_flow":null,
525
549
  # "date":"2014-06-23"
526
550
  # },
527
- # {
551
+ # {
528
552
  # "gallons":8693,
553
+ # "seconds_ran":38603,
554
+ # "realtime_average_flow":null,
529
555
  # "date":"2014-06-30"
530
556
  # },
531
- # {
557
+ # {
532
558
  # "gallons":7871,
559
+ # "seconds_ran":37822,
560
+ # "realtime_average_flow":null,
533
561
  # "date":"2014-07-07"
534
562
  # },
535
- # {
563
+ # {
536
564
  # "gallons":5892,
565
+ # "seconds_ran":33325,
566
+ # "realtime_average_flow":null,
537
567
  # "date":"2014-07-14"
538
568
  # },
539
- # {
569
+ # {
540
570
  # "gallons":949,
571
+ # "seconds_ran":29000,
572
+ # "realtime_average_flow":null,
541
573
  # "date":"2014-07-21"
542
574
  # }
543
575
  # ]
@@ -900,8 +932,8 @@ class WeatherMatic
900
932
 
901
933
  def secret_api_key
902
934
  # ENV['SLN_API_SECRET_KEY']
903
- # '245aa67451c534803dc93e7953ff40b6' # This should be an environment variable for best security - this is not a production key
904
- '245aa67451c534803dc93e7953ffffff'
935
+ '245aa67451c534803dc93e7953ff40b6' # This should be an environment variable for best security - this is not a production key
936
+ # '245aa67451c534803dc93e7953ffffff'
905
937
  end
906
938
 
907
939
  def make_get(uri)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weathermatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Merritt