This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import lrparsing | |
| from lrparsing import Keyword, List, Prio, Ref, THIS, Token, Tokens, Repeat | |
| class BacnetParser(lrparsing.Grammar): | |
| class T(lrparsing.TokenRegistry): | |
| integer = Token(re="\-?[0-9]+") | |
| decimal = Token(re="-?[0-9]+\.[0-9]+") | |
| ident = Token(re="[a-zA-Z][a-zA-Z0-9\-\.\&\_]*") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://comfy.dev.buildingrobotics.com/authenticate/cq4cwNVPPiJROb8GzC1jvoOWX/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| ## PG&E Green button data downloader | |
| ## | |
| ## @author Stephen Dawson-Haggerty <stevedh@eecs.berkeley.edu> | |
| ## | |
| ## Based on https://gist.github.com/3131346 and Andrew Krioukov's | |
| ## sMAPv1 PG&E driver for the old format of data. | |
| ## | |
| import os |