arnovr / ocusagecharts Goto Github PK
View Code? Open in Web Editor NEWOwncloud 7 / 8 usage statistics
License: MIT License
Owncloud 7 / 8 usage statistics
License: MIT License
Hi,
after switching to php7 the ocusagechart won't work anymore. Here is the message of the log:
Declaration of OCA\ocUsageCharts\DataProviders\Storage\StorageUsagePerMonthProvider::__construct(OCA\ocUsageCharts\Entity\ChartConfig $chartConfig, OCA\ocUsageCharts\Entity\Storage\StorageUsageRepository $repository, OCA\ocUsageCharts\Owncloud\User $user, OCA\ocUsageCharts\Owncloud\Storage $storage, OCA\ocUsageCharts\DataProviders\ChartUsageHelper $chartUsageHelper) must be compatible with OCA\ocUsageCharts\DataProviders\Storage\DataProviderStorageInterface::__construct(OCA\ocUsageCharts\Entity\ChartConfig $chartConfig, OCA\ocUsageCharts\Entity\Storage\StorageUsageRepository $repository, OCA\ocUsageCharts\Owncloud\User $user, OCA\ocUsageCharts\Owncloud\Storage $storage) at /www/htdocs/cloud/apps/ocusagecharts/lib/dataproviders/storage/storageusagepermonthprovider.php#36
In order to get updates about usages
As an user
i need to be able to setup e-mail information which sends me usage information
Hi,
thank you very much for this app. I really like and it and use it often.
I have a requirement which would be very nice if to be built in.
I am using a certain hosting product which gives me "unlimited" space.
Unlimited means: when the space used exceeds 75% of the space available, I get an additional GB each day until the space available reaches less then 75%. Currently I am uploading my photos, music and videos which already exceed 230 GB.
To make it more visual:
The available space is 100GB. I use 80GB which makes a percentage of 80%. So would get one additional GB for seven days. Now, 80 GB of 107 GB = 74,76%.
Additionaly, the graph for the past months usage should be extended by a line which indicates the currently available space.
So, to make a long story short: it would be nice to be able to define a function calculating the space available depending on the space used. So I can immediately see the amount of data I can upload today ;-)
Kind regards,
Marcus
What if you have hundreds or thousands of users. Would it be possible to show graph based on group or other criteria?
Hi,
currently three different versions are used by the app:
3 in https://github.com/arnovr/ocusagecharts/blob/master/appinfo/version
1.0 in https://github.com/arnovr/ocusagecharts/blob/master/appinfo/info.xml#L11
0.3.1 in http://apps.owncloud.com/content/show.php/Storage+Usage+%2B+Activity+Charts?content=166746 and https://github.com/arnovr/ocusagecharts/releases
I don't know if this can cause problems but i think the version numbering should be integer between all files.
Make graphs ased on activity
And nothing happens. I have the newest version of owncloud, and no error happens in the log files so I can sadly not say much to it
It doesn't do this.... Generates errors when just going to the page
What to update:
That chart will now go back into history untill unlimited.
Not a problem for now, seeying it will have to fill within a 2 years before it will become unreadable.
The advantage of doing this will improve changing code when owncloud is upgrading.
What to update:
I recently installed ocUsageCharts v3.2 on my ownCloud v7.0.2.1. At charts menu the stats from my users are not shown.
Log show this error:
Fatal index Doctrine\DBAL\DBALException: An exception occurred while executing 'SELECT DISTINCT CONCAT(MONTH("created"), ' ', YEAR("created")) as month, avg("usage") as average, username FROM oc_uc_storageusage WHERE "usage" > 0 AND created > ? GROUP BY username, month': SQLSTATE[42883]: Undefined function: 7 ERROR: function month(timestamp without time zone) does not exist LINE 1: SELECT DISTINCT CONCAT(MONTH("created"), ' ', YEAR("created"... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts
My ownCloud is running under:
Ubuntu 14.04.1 LTS
Apache/2.4.7 (Ubuntu)
PHP 5.5.9-1ubuntu4.4
External Database: PostgreSQL 9.1.14
LDAP
Regards
behaviour: Free on the admin storage chart shows 100% always
expected behaviour: It should show the total available free space for the owncloud system over the total disk space available to the owncloud installation
system: Owncloud 7.0.2 stable
OS: ubuntu server 14.04
Database: MySQL
OpenBSD 5.6
Owncloud 7.0.3
ocusagecharts 3.3
Blank page after enabling Charts. The following shows in the owncloud.log file:
{"app":"index","message":"Exception: js file not found: script:js/d3/d3.min formfactor: serverroot:/owncloud","level":4,"time":"2014-12-21T16:02:55+00:00"}
{"app":"PHP","message":"js file not found: script:js/d3/d3.min formfactor: serverroot:/owncloud at /owncloud/lib/private/template/resourcelocator.php#49","level":3,"time":"2014-12-21T16:02:55+00:00"}
fileshare# pwd
/var/www/owncloud
fileshare# find . -name d3.min
fileshare#
In my owncloud (OC 7.0.5), I don't use any prefix. Unfortunately, the app searches for a table
SELECT * FROM `oc_uc_chartconfig` WHERE `username` ....
It must be hardcoded somewhere. I have a uc_chartconfig-table (I tested several chart-apps, I don't know if this app created them).
Idea:
Add default config to user when no charts are found.
Fix all @todo fields in the code base
Hello. Now after getting the thing to run, I noticed that the graph shows absolutely wrong values.
According to the graph, a user of mine uses over 350 gigabyte of storage which is not possible because I limited the storage for every user to 10GB.
Any way to fix this/find out what's going wrong?
Hi after opening the chart vieuw I get this error:
An exception occurred while executing 'SELECT * FROM oc_uc_chartconfig
WHERE username
= ?' with params ["admin"]: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'owncloud.oc_uc_chartconfig' doesn't exist
I'm not sure if it's a bug, just really want to know how to fix it.
Thankyou:)!
My owncloud is linked with a AD, so in the graph i only see the UUID. How can i use the Full Name instead ?
Hi,
adding the following code to /js/c3_initGraphs.js Line 55 (https://github.com/arnovr/ocusagecharts/blob/master/js/c3_initGraphs.js#L55) will change the percentage to gigabyte which is more informative. The percentage will still be visible on mouse-hover the pie-chart:
c3.generate({ // this is the current Line 54
pie:{
label:{
format:function(x){
return (Math.round((x/1024) * 100)/100) + ' GB';
}
}
},
bindto: '#chart', // this is current Line 55
kind regards,
Chris
Hi! After upgrade to 8.1.1 I installed charts app for the first time. While the activity stats looks correct the storage calculations (all three) are from a my own user (in admin group) and free space, no other user stats are available in this view.
OS: CentOS release 6.7 (Final)
PHP: PHP 5.5.28 (cli) (built: Aug 6 2015 08:53:05)
OC: 8.1.1
Help to solve this problem is appreciated.
It's rubbish :)
Edit find() select on date specific
It needs inline scripting allowance, sucks so must be fixed.
Comment by RobinJ1995
Will freeze the browser with anything more than perhaps ~100 users.
Overview page with:
Space per group: ( Groupname, allocated, used )
Total space growth ( Group all users together in one graph )
Total space currently used ( in pie graph )
Top 10 space users.
Show a loader when the user clicks somewhere.
It now just waits untill it's loaded, not so handy
Tests need to be written
Create l10n directory with contents
It just uses predefined values, it should create it properly
I just installed the latest version from the appstore. Installing and using it was ok unitl I logged out. When trying to load ownclouds loginpage a got a Redirection Loop Error and could not load the page anymore.
I use ownloud v.8.1.3
The dataprovider classes should be split up purely to seperate logic when you are an admin or regular user.
The error message:
App can't be installed because of not allowed code in the App
App "ocusagecharts" is using a not allowed call "OC_Helper::". Installation refused.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.