Giter Club home page Giter Club logo

ud-bginfo's People

Contributors

adamdriscoll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ud-bginfo's Issues

Exception with Invoke with "0", Attempted to divide by "0"

Using a trial version of the Universal Dashboard, version 2.3.1.
Using ud-bginfo version 2.0.
Running locally on desktop computer.

If you run New-StorageCard on a computer that has a DVD drive, it throws an exception with the error "Attempted to divide by zero." (at least from what I've seen).
Error from page: "Exception calling "Invoke" with "0" argument(s): "Attempted to divide by zero.""
Error from PS is the same: New-UDPage : Exception calling "Invoke" with "0" argument(s): "Attempted to divide by zero."

Changing the psm1 function for New-StorageCard to include: | Where {$_.DriveType -ne "5"} fixed the issue I ran into. Not sure if including the DVD was by design. I'm perfectly fine with keeping that modification if it's not an actual issue.

Divide by zero error

Was getting a divide by zero error when executing New-UDProgressMetric. The following modified code resolved the issue.

$Percent = [Math]::Round(($Value / [Math]::max(1,$Total)) * 100)

Error While running the Script

Hello Adam,

First of all, I would like to say, EXCELLENT WORK. I really appreciate whatever you are doing.
I did not get much time to explore all the aspects of Universal Dashboard but whatever I have so far, just love it. I have been showcasing them at work with different departments too.

now coming back to the issue, I tried to run the ud-bginfo dashboard. but I get this following error.

I can browse to the dashboard but it comes up without any tiles or cards. Please advise what am I doing wrong?

PS C:> C:\Users\rana\Documents\WindowsPowerShell\Modules\ud-bginfo\1.1\ud-bginfo.ps1
New-UDDashboard : Parameter set cannot be resolved using the specified named parameters.
At C:\Users\rana\Documents\WindowsPowerShell\Modules\ud-bginfo\1.1\ud-bginfo.ps1:26 char:14

  • ... Dashboard = New-UDDashboard -Title "$env:ComputerName - BGINFO" -Cont ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : SyntaxError: (UniversalDashboard.Models.Dashboard:Dashboard) [New-UDDashboard], ParameterBindingException
    • FullyQualifiedErrorId : UniversalDashboard.Cmdlets.NewDashboardCommand

Name Port Running


Dashboard20 10000 True

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.