-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
428 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Copyright (C) 2006-2015 OpenWrt.org | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=pzem004t | ||
PKG_VERSION:=2016-10-14 | ||
PKG_RELEASE:=1 | ||
PKG_MAINTAINER:=Armand Huqi | ||
|
||
PKG_LICENSE:=GPL-2.0 | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/pzem004t | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
TITLE:=A simple util to read/write data PZEM-004T | ||
MAINTAINER:=https://github.com/alabamas/PZEM-004T | ||
DEPENDS:=+libcurl | ||
endef | ||
|
||
define Package/pzem004t/description | ||
A simple util to read/write data PZEM-004T | ||
endef | ||
|
||
define Build/Prepare | ||
$(INSTALL_DIR) $(PKG_BUILD_DIR) | ||
$(INSTALL_DATA) ./src/* $(PKG_BUILD_DIR)/ | ||
endef | ||
|
||
define Build/Compile | ||
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -lcurl -O -g -D LINUX \ | ||
-o $(PKG_BUILD_DIR)/pzem004t $(PKG_BUILD_DIR)/pzem004t.c | ||
endef | ||
|
||
define Package/pzem004/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pzem004t $(1)/usr/bin/ | ||
endef | ||
|
||
$(eval $(call BuildPackage,pzem004t)) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
pzem004t | ||
======== | ||
|
||
A simple util to read/write data PZEM-004T energy monitor | ||
|
||
|
||
License | ||
======= | ||
|
||
This sources is free software; you can redistribute it and/or modify it under the terms of | ||
the GNU Lesser General Public License as published by the Free Software Foundation; | ||
either version 2.1 of the License, or (at your option) any later version. | ||
|
||
You should have received a copy of the GNU Lesser General Public License along with this | ||
script; if not, please visit http://www.gnu.org/copyleft/gpl.html for more information. | ||
|
||
|
||
Usage | ||
===== | ||
|
||
More info for use PZEM-004T on OpenWRT routers you can see [here (Russian)](http://zftlab.org) | ||
|
||
|
||
Links | ||
===== | ||
|
||
* [Original sources on GitHub from alabamas](https://github.com/alabamas/PEZM-004T) |
Oops, something went wrong.