Skip to content

Commit

Permalink
Update webadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigFisher committed Oct 16, 2016
1 parent 39d58e0 commit 9232b74
Show file tree
Hide file tree
Showing 6 changed files with 428 additions and 7 deletions.
47 changes: 47 additions & 0 deletions pzem004t/Makefile
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))
27 changes: 27 additions & 0 deletions pzem004t/README.md
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)
Loading

0 comments on commit 9232b74

Please sign in to comment.