Giter Club home page Giter Club logo

ocusagecharts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ocusagecharts's Issues

Chart and cron-job not working with php7 and ownCloud 8.2.x

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

Available space calculation

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

Use integer version numbers

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.

Limit the Average Storage usage per month

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.

Abstract owncloud dependency stuff from the library

The advantage of doing this will improve changing code when owncloud is upgrading.
What to update:

  • Entitiy*Repository
  • DataProviders\StorageUsageBase
  • DataProviders\StorageUsageCurrentProvider
  • Service\UpdaterService

Database Error with OC 7.0.2

I recently installed ocUsageCharts v3.2 on my ownCloud v7.0.2.1. At charts menu the stats from my users are not shown.

captura

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

No charts. Missing d3.min

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#

fixed prefix "oc_"

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).

Graphs are showing absurd stats

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?

After opening Usage Chart DB error?

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:)!

Change percentage view in pie-chart to gigabyte

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

Storage calculation without other user's storage stats

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.

Properly design the dashboard

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.

App causes Redirection Loop on ownclouds index.php

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.